<?php
/**
 * @package Joomla
 * @subpackage Jcampaignmonitor
 * @copyright (C) 2010 - Matthieu BARBE - www.ccomca.com
 * @license GNU/GPL v2
 * 
 * Jcampaignmonitor is a derivative work of the excellent Campaign Monitor Module (from Van Eldijk Studios) and CampaignMonitor Ajax subscription Module (from Joomailer)
 * see http://www.vaneldijk.nl/ and http://www.joomailer.com/ for more information
 *
 * Jcampaignmonitor uses :
 * CampaignMonitorLib (CMBase.php => http://code.google.com/p/campaignmonitor-php/)
 * json class by Michal Migurski, Matt Knapp, Brett Stimmerman
 * 1 000 free "Farm Fresh Web Icons" => http://www.fatcow.com/free-icons/
 * extendedlistnamevalue.php & extendedlist.js are inspired by RocketTheme !
 *
 * Jcampaignmonitor is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

class modJCampaignMonitorHelper {
	
	
	
	
	//get parameters module id
	function getParams($id)	{

        $db =& JFactory::getDBO();
		$query = "SELECT params FROM #__modules WHERE module='mod_jcampaignmonitor' AND id=".(int)$id;
		$db->setQuery($query);
        $params = $db->loadResult();
		return $params;
    }
	
	
	
	
}
?>